package mypro1;

import java.util.Scanner;

public class TestCompare {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        System.out.println("请输入三个数");
        int a = num.nextInt();
        int b = num.nextInt();
        int c = num.nextInt();
        int max;
        if (a > b) {
            if (a > c) {
                max = a;
            } else {
                max = c;
            }
        } else {
            if (b > c) {
                max = b;
            } else {
                max = c;
            }
        }
        System.out.println("最大数是:" + max);
    }
}
